package com.sharemarking.application.common.entity;


import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

import com.sharemarking.application.common.BaseEntity;


@Entity
@Table(name="sys_notice")
public class Notice extends BaseEntity {
	
	private String title;
	private String content;
	@DateTimeFormat(pattern="yyyy-mm-dd")
	private Date time;
	private String state;
	
	@ManyToOne
	@JoinColumn(name="employeeId")
	private Employee employee;
	
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getState(){
		return state;
	}
	public void setState(String state){
		this.state = state;
	}
	public Employee getEmployee() {
		return employee;
	}
	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
     
}
